RtUnlockProcess

RtUnlockProcess unlocks sections of the process' virtual address space previously locked into physical memory. RtUnlockProcess has no effect within the RTSS environment.

Syntax

BOOL RtUnlockProcess(
    ULONG Section
);

Parameters

Section

A number specifying which sections to unlock. Currently, the value RT_PLOCK_ALL is supported.

Return Values

TRUE if the function succeeds, FALSE if invalid parameters are specified

Remarks

RtUnlockProcess unlocks sections of the process' memory previously locked by a call to RtLockProcess. The behavior of unlocking memory not previously locked by RtLockProcess is undefined and unpredictable. This function has no impact on RTSS determinism. This call is a NO-OP (no operation) when issued from RTSS applications.

In the Win32 environment, RtUnlockProcess does not unlock the process due to a Windows limitation. The actual unlock occurs when the process exits; it then releases the memory.

Requirements

Header Rtapi.h
Library Rtx_Rtss.lib

See Also:

RtAllocateLockedMemory

RtCommitLockHeap

RtCommitLockProcessHeap

RtCommitLockStack

RtFreeLockedMemory

RtLockKernel

RtLockProcess

RtUnlockKernel

IntervalZero.com | Support | Give Feedback